#pragma once
#ifndef FILECONTROLER
#define FILECONTROLER

#include "stdio.h"
#include "string.h"
#include "WorkCell.h"

class File : public Cell
{
public :
	File();
	File(char* FileName);
	~File();
public :	
	//////////////////////////////////////////////////
	bool OpenHandle(char* FileName);
	bool SetDateCarriedBuffer(void* Buffer,long AllByte);
	long DatePoseIteratorSeek(long BytePosition);
	long DatePoseIteratorSeekBegin();
	long DatePoseIteratorSeekEnd();
	long ReadData(long Byte,long BeginPosition);
	long WriteData(long Byte,long BeginPosition);
	long ClearData(long Byte,long BeginPosition);
	//////////////////////////////////////////////////
	long  SaveDate();	
private :	
	long m_IteratorPose;
};

#endif
